home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / AdvancedPane$CopyAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  2.0 KB  |  44 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.BaseAction;
  4. import java.awt.event.ActionEvent;
  5. import java.beans.PropertyChangeEvent;
  6. import java.beans.PropertyChangeListener;
  7. import java.util.EventObject;
  8. import javax.swing.AbstractAction;
  9.  
  10. public class AdvancedPane$CopyAction extends BaseAction implements PropertyChangeListener {
  11.    // $FF: synthetic field
  12.    final AdvancedPane this$0;
  13.  
  14.    public AdvancedPane$CopyAction(AdvancedPane var1) {
  15.       super("edit.item.copy", 67);
  16.       this.this$0 = var1;
  17.       var1.ipeTable.copyAction.addPropertyChangeListener(this);
  18.       var1.xpeTable.copyAction.addPropertyChangeListener(this);
  19.       var1.igeTable.copyAction.addPropertyChangeListener(this);
  20.       var1.xgeTable.copyAction.addPropertyChangeListener(this);
  21.       var1.notTable.copyAction.addPropertyChangeListener(this);
  22.       var1.piTable.copyAction.addPropertyChangeListener(this);
  23.       var1.nsTable.copyAction.addPropertyChangeListener(this);
  24.       var1.dtTable.copyAction.addPropertyChangeListener(this);
  25.       ((AbstractAction)this).setEnabled(false);
  26.    }
  27.  
  28.    public void updateEnabled() {
  29.       ((AbstractAction)this).setEnabled(this.this$0.getCurrentTable().copyAction.isEnabled());
  30.    }
  31.  
  32.    public void actionOccurred(ActionEvent var1) {
  33.       this.this$0.getCurrentTable().copyAction.actionOccurred(var1);
  34.    }
  35.  
  36.    public void propertyChange(PropertyChangeEvent var1) {
  37.       if (var1.getPropertyName().equals("enabled") && ((EventObject)var1).getSource() == this.this$0.getCurrentTable().copyAction) {
  38.          Boolean var2 = (Boolean)var1.getNewValue();
  39.          ((AbstractAction)this).setEnabled(var2);
  40.       }
  41.  
  42.    }
  43. }
  44.